﻿@using Web.Model;

@helper Small(News news, string imageClass, string id = null)
{
    if (news.NewsAvatar != null)
    {
        <img src="@news.NewsAvatar.Small.OriginalSizeUrl" alt="@news.Title" class="@imageClass" @(id != null ? "id=\"" + id + "\"" : "")/>
    }
}

@helper Large(News news, string imageClass, string id = null)
{
    if (news.NewsAvatar != null)
    {
        <img src="@news.NewsAvatar.Large.OriginalSizeUrl" height = "192" alt="@news.Title" class="@imageClass" @(id != null ? "id=\"" + id + "\"" : "")/>
    }
} 